import {defineStore} from "pinia"

export const useCounterStore = defineStore('counter', {

    actions: {
        add(value: number) {
            console.log(value)
            this.sum += value
        }
    },

    state() {
        return {
            sum: 3
        }
    }
})